/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Visual;

import Persistencia.exceptions.PreexistingEntityException;
import java.util.LinkedList;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JOptionPane;

import motoressa.TipoDeServicio;

import motoressa.Calle;
import motoressa.Marca;
import motoressa.Modelo;
import motoressa.Operacion;
import motoressa.Repuesto;
import motoressa.Segmento;
import motoressa.Servicio;
import motoressa.TipoDeServicio;
import motoressa.Vehiculo;


/**
 *
 * @author Nicolas
 */
public class ABMAnexo extends javax.swing.JFrame {

    DefaultComboBoxModel misVehiculosCombo=new DefaultComboBoxModel();
    DefaultComboBoxModel misModelosCombo=new DefaultComboBoxModel();
    DefaultComboBoxModel misSegmentosCombo=new DefaultComboBoxModel();
    DefaultComboBoxModel misMarcasCombo=new DefaultComboBoxModel();
    DefaultComboBoxModel misTiposServicioCombo=new DefaultComboBoxModel();
    
    ControladoraVisual miVisual=new ControladoraVisual();
    /**
     * Creates new form ABMAnexo
     */
    public ABMAnexo() {
        initComponents();
        CargarComboVehiculos();
        
        CargarComboTipoServicio();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel3 = new javax.swing.JPanel();
        jPanel4 = new javax.swing.JPanel();
        jlabel3 = new javax.swing.JLabel();
        txtNombreCalle = new javax.swing.JTextField();
        jLabel14 = new javax.swing.JLabel();
        txtCodigoCalle = new javax.swing.JTextField();
        btnNuevoCalle = new javax.swing.JButton();
        btnModificarCalle = new javax.swing.JButton();
        btnEliminarCalle = new javax.swing.JButton();
        jPanel6 = new javax.swing.JPanel();
        jlabel5 = new javax.swing.JLabel();
        txtNombreLocalidad = new javax.swing.JTextField();
        jLabel17 = new javax.swing.JLabel();
        txtCodigoLocalidad = new javax.swing.JTextField();
        btnNuevoLocalidad = new javax.swing.JButton();
        btnModificarLocalidad = new javax.swing.JButton();
        btnEliminarLocalidad = new javax.swing.JButton();
        jPanel7 = new javax.swing.JPanel();
        jlabel6 = new javax.swing.JLabel();
        txtDescripcionGrupo = new javax.swing.JTextField();
        jLabel19 = new javax.swing.JLabel();
        txtCodigoGrupo = new javax.swing.JTextField();
        btnNuevoGrupo = new javax.swing.JButton();
        btnModificarGrupo = new javax.swing.JButton();
        btnEliminarGrupo = new javax.swing.JButton();
        cmbVehiculoNombre = new javax.swing.JComboBox();
        jLabel1 = new javax.swing.JLabel();
        jPanel8 = new javax.swing.JPanel();
        jlabel7 = new javax.swing.JLabel();
        txtDescripcionMarca = new javax.swing.JTextField();
        jLabel20 = new javax.swing.JLabel();
        txtCodigoMarca = new javax.swing.JTextField();
        btnNuevoMarca = new javax.swing.JButton();
        btnModificarMarca = new javax.swing.JButton();
        btnEliminarMarca = new javax.swing.JButton();
        jPanel9 = new javax.swing.JPanel();
        jlabel8 = new javax.swing.JLabel();
        txtDescripcionModelo = new javax.swing.JTextField();
        jLabel21 = new javax.swing.JLabel();
        txtCodigoModelo = new javax.swing.JTextField();
        btnNuevoModelo = new javax.swing.JButton();
        btnModificarModelo = new javax.swing.JButton();
        btnEliminarModelo = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();
        txtAnioModelo = new javax.swing.JTextField();
        jPanel10 = new javax.swing.JPanel();
        jlabel9 = new javax.swing.JLabel();
        txtDescripcionSegmento = new javax.swing.JTextField();
        jLabel22 = new javax.swing.JLabel();
        txtCodigoSegmento = new javax.swing.JTextField();
        btnNuevoSegmento = new javax.swing.JButton();
        btnModificarSegmento = new javax.swing.JButton();
        btnEliminarSegmento = new javax.swing.JButton();
        jPanel11 = new javax.swing.JPanel();
        jlabel10 = new javax.swing.JLabel();
        txtDescripcionServicio = new javax.swing.JTextField();
        jLabel23 = new javax.swing.JLabel();
        txtCodigoServicio = new javax.swing.JTextField();
        btnNuevoServicio = new javax.swing.JButton();
        btnModificarServicio = new javax.swing.JButton();
        btnEliminarServicio = new javax.swing.JButton();
        jlabel14 = new javax.swing.JLabel();
        cmbTipoServicio = new javax.swing.JComboBox();
        jPanel12 = new javax.swing.JPanel();
        jlabel11 = new javax.swing.JLabel();
        txtDescripcionTipo = new javax.swing.JTextField();
        jLabel24 = new javax.swing.JLabel();
        txtCodigoTipo = new javax.swing.JTextField();
        btnNuevoTipo = new javax.swing.JButton();
        btnModificarTipo = new javax.swing.JButton();
        btnEliminarTipo = new javax.swing.JButton();
        jPanel13 = new javax.swing.JPanel();
        jlabel12 = new javax.swing.JLabel();
        txtDescripcionTipoPedido = new javax.swing.JTextField();
        jLabel25 = new javax.swing.JLabel();
        txtCodigoTipoPedido = new javax.swing.JTextField();
        btnNuevoTipoPedido = new javax.swing.JButton();
        btnModificarTipoPedido = new javax.swing.JButton();
        btnEliminarTipoPedido = new javax.swing.JButton();
        jPanel14 = new javax.swing.JPanel();
        jlabel13 = new javax.swing.JLabel();
        txtDescripcionEstado1 = new javax.swing.JTextField();
        jLabel26 = new javax.swing.JLabel();
        txtCodigoEstado1 = new javax.swing.JTextField();
        btnNuevoEstado1 = new javax.swing.JButton();
        btnModificarEstado1 = new javax.swing.JButton();
        btnEliminarEstado1 = new javax.swing.JButton();
        btnGuardar = new javax.swing.JButton();
        btnSalir = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 153), 1, true), "Anexos", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Cambria", 1, 14))); // NOI18N

        jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 153), 1, true), "Calles", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Cambria", 1, 12))); // NOI18N

        jlabel3.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
        jlabel3.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jlabel3.setText("Nombre");
        jlabel3.setPreferredSize(new java.awt.Dimension(120, 20));

        txtNombreCalle.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
        txtNombreCalle.setPreferredSize(new java.awt.Dimension(120, 20));
        txtNombreCalle.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtNombreCalleActionPerformed(evt);
            }
        });

        jLabel14.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
        jLabel14.setText("Código:");
        jLabel14.setPreferredSize(new java.awt.Dimension(120, 20));

        txtCodigoCalle.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
        txtCodigoCalle.setPreferredSize(new java.awt.Dimension(120, 20));
        txtCodigoCalle.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtCodigoCalleActionPerformed(evt);
            }
        });

        btnNuevoCalle.setText("Nuevo");
        btnNuevoCalle.setMaximumSize(new java.awt.Dimension(170, 40));
        btnNuevoCalle.setMinimumSize(new java.awt.Dimension(150, 40));
        btnNuevoCalle.setPreferredSize(new java.awt.Dimension(150, 40));
        btnNuevoCalle.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnNuevoCalleActionPerformed(evt);
            }
        });

        btnModificarCalle.setText("Modificar");
        btnModificarCalle.setMaximumSize(new java.awt.Dimension(170, 40));
        btnModificarCalle.setMinimumSize(new java.awt.Dimension(150, 40));
        btnModificarCalle.setPreferredSize(new java.awt.Dimension(150, 40));

        btnEliminarCalle.setText("Eliminar");
        btnEliminarCalle.setMaximumSize(new java.awt.Dimension(170, 40));
        btnEliminarCalle.setMinimumSize(new java.awt.Dimension(150, 40));
        btnEliminarCalle.setPreferredSize(new java.awt.Dimension(150, 40));

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(btnNuevoCalle, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnModificarCalle, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnEliminarCalle, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jlabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)
                            .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txtCodigoCalle, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)
                            .addComponent(txtNombreCalle, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                .addContainerGap())
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtCodigoCalle, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jlabel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtNombreCalle, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnNuevoCalle, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnModificarCalle, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnEliminarCalle, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel6.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 153), 1, true), "Localidades", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Cambria", 1, 12))); // NOI18N

        jlabel5.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
        jlabel5.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jlabel5.setText("Nombre");
        jlabel5.setPreferredSize(new java.awt.Dimension(120, 20));

        txtNombreLocalidad.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
        txtNombreLocalidad.setPreferredSize(new java.awt.Dimension(120, 20));
        txtNombreLocalidad.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtNombreLocalidadActionPerformed(evt);
            }
        });

        jLabel17.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
        jLabel17.setText("Código:");
        jLabel17.setPreferredSize(new java.awt.Dimension(120, 20));

        txtCodigoLocalidad.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
        txtCodigoLocalidad.setPreferredSize(new java.awt.Dimension(120, 20));
        txtCodigoLocalidad.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtCodigoLocalidadActionPerformed(evt);
            }
        });

        btnNuevoLocalidad.setText("Nuevo");
        btnNuevoLocalidad.setMaximumSize(new java.awt.Dimension(170, 40));
        btnNuevoLocalidad.setMinimumSize(new java.awt.Dimension(150, 40));
        btnNuevoLocalidad.setPreferredSize(new java.awt.Dimension(150, 40));
        btnNuevoLocalidad.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnNuevoLocalidadActionPerformed(evt);
            }
        });

        btnModificarLocalidad.setText("Modificar");
        btnModificarLocalidad.setMaximumSize(new java.awt.Dimension(170, 40));
        btnModificarLocalidad.setMinimumSize(new java.awt.Dimension(150, 40));
        btnModificarLocalidad.setPreferredSize(new java.awt.Dimension(150, 40));

        btnEliminarLocalidad.setText("Eliminar");
        btnEliminarLocalidad.setMaximumSize(new java.awt.Dimension(170, 40));
        btnEliminarLocalidad.setMinimumSize(new java.awt.Dimension(150, 40));
        btnEliminarLocalidad.setPreferredSize(new java.awt.Dimension(150, 40));

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addComponent(btnNuevoLocalidad, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnModificarLocalidad, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnEliminarLocalidad, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jlabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)
                            .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txtCodigoLocalidad, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)
                            .addComponent(txtNombreLocalidad, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                .addContainerGap())
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtCodigoLocalidad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jlabel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtNombreLocalidad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnNuevoLocalidad, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnModificarLocalidad, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnEliminarLocalidad, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 153), 1, true), "Grupos de Construcción", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Cambria", 1, 12))); // NOI18N

        jlabel6.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
        jlabel6.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jlabel6.setText("Descripción:");
        jlabel6.setPreferredSize(new java.awt.Dimension(120, 20));

        txtDescripcionGrupo.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
        txtDescripcionGrupo.setPreferredSize(new java.awt.Dimension(120, 20));
        txtDescripcionGrupo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtDescripcionGrupoActionPerformed(evt);
            }
        });

        jLabel19.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
        jLabel19.setText("Código:");
        jLabel19.setPreferredSize(new java.awt.Dimension(120, 20));

        txtCodigoGrupo.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
        txtCodigoGrupo.setPreferredSize(new java.awt.Dimension(120, 20));
        txtCodigoGrupo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtCodigoGrupoActionPerformed(evt);
            }
        });

        btnNuevoGrupo.setText("Nuevo");
        btnNuevoGrupo.setMaximumSize(new java.awt.Dimension(170, 40));
        btnNuevoGrupo.setMinimumSize(new java.awt.Dimension(150, 40));
        btnNuevoGrupo.setPreferredSize(new java.awt.Dimension(150, 40));
        btnNuevoGrupo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnNuevoGrupoActionPerformed(evt);
            }
        });

        btnModificarGrupo.setText("Modificar");
        btnModificarGrupo.setMaximumSize(new java.awt.Dimension(170, 40));
        btnModificarGrupo.setMinimumSize(new java.awt.Dimension(150, 40));
        btnModificarGrupo.setPreferredSize(new java.awt.Dimension(150, 40));

        btnEliminarGrupo.setText("Eliminar");
        btnEliminarGrupo.setMaximumSize(new java.awt.Dimension(170, 40));
        btnEliminarGrupo.setMinimumSize(new java.awt.Dimension(150, 40));
        btnEliminarGrupo.setPreferredSize(new java.awt.Dimension(150, 40));

        cmbVehiculoNombre.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        cmbVehiculoNombre.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cmbVehiculoNombreActionPerformed(evt);
            }
        });

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel1.setText("Vehiculo");

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(btnNuevoGrupo, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnModificarGrupo, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnEliminarGrupo, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup()
                        .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jlabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)
                            .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)
                            .addGroup(jPanel7Layout.createSequentialGroup()
                                .addComponent(jLabel1)
                                .addGap(0, 0, Short.MAX_VALUE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(cmbVehiculoNombre, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(txtCodigoGrupo, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)
                            .addComponent(txtDescripcionGrupo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                .addContainerGap())
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtCodigoGrupo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jlabel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtDescripcionGrupo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cmbVehiculoNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel1))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 17, Short.MAX_VALUE)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnNuevoGrupo, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnModificarGrupo, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnEliminarGrupo, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        jPanel8.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 153), 1, true), "Marcas de Vehículos", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Cambria", 1, 12))); // NOI18N

        jlabel7.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
        jlabel7.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jlabel7.setText("Descripción:");
        jlabel7.setPreferredSize(new java.awt.Dimension(120, 20));

        txtDescripcionMarca.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
        txtDescripcionMarca.setPreferredSize(new java.awt.Dimension(120, 20));
        txtDescripcionMarca.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtDescripcionMarcaActionPerformed(evt);
            }
        });

        jLabel20.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
        jLabel20.setText("Código:");
        jLabel20.setPreferredSize(new java.awt.Dimension(120, 20));

        txtCodigoMarca.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
        txtCodigoMarca.setPreferredSize(new java.awt.Dimension(120, 20));

        btnNuevoMarca.setText("Nuevo");
        btnNuevoMarca.setMaximumSize(new java.awt.Dimension(170, 40));
        btnNuevoMarca.setMinimumSize(new java.awt.Dimension(150, 40));
        btnNuevoMarca.setPreferredSize(new java.awt.Dimension(150, 40));
        btnNuevoMarca.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnNuevoMarcaActionPerformed(evt);
            }
        });

        btnModificarMarca.setText("Modificar");
        btnModificarMarca.setMaximumSize(new java.awt.Dimension(170, 40));
        btnModificarMarca.setMinimumSize(new java.awt.Dimension(150, 40));
        btnModificarMarca.setPreferredSize(new java.awt.Dimension(150, 40));

        btnEliminarMarca.setText("Eliminar");
        btnEliminarMarca.setMaximumSize(new java.awt.Dimension(170, 40));
        btnEliminarMarca.setMinimumSize(new java.awt.Dimension(150, 40));
        btnEliminarMarca.setPreferredSize(new java.awt.Dimension(150, 40));

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jlabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)
                            .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txtCodigoMarca, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)
                            .addComponent(txtDescripcionMarca, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addComponent(btnNuevoMarca, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnModificarMarca, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnEliminarMarca, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtCodigoMarca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jlabel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtDescripcionMarca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 19, Short.MAX_VALUE)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnNuevoMarca, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnModificarMarca, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnEliminarMarca, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 153), 1, true), "Modelos de Vehículos", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Cambria", 1, 12))); // NOI18N

        jlabel8.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
        jlabel8.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jlabel8.setText("Descripción:");
        jlabel8.setPreferredSize(new java.awt.Dimension(120, 20));

        txtDescripcionModelo.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
        txtDescripcionModelo.setPreferredSize(new java.awt.Dimension(120, 20));
        txtDescripcionModelo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtDescripcionModeloActionPerformed(evt);
            }
        });

        jLabel21.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
        jLabel21.setText("Código:");
        jLabel21.setPreferredSize(new java.awt.Dimension(120, 20));

        txtCodigoModelo.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
        txtCodigoModelo.setPreferredSize(new java.awt.Dimension(120, 20));

        btnNuevoModelo.setText("Nuevo");
        btnNuevoModelo.setMaximumSize(new java.awt.Dimension(170, 40));
        btnNuevoModelo.setMinimumSize(new java.awt.Dimension(150, 40));
        btnNuevoModelo.setPreferredSize(new java.awt.Dimension(150, 40));
        btnNuevoModelo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnNuevoModeloActionPerformed(evt);
            }
        });

        btnModificarModelo.setText("Modificar");
        btnModificarModelo.setMaximumSize(new java.awt.Dimension(170, 40));
        btnModificarModelo.setMinimumSize(new java.awt.Dimension(150, 40));
        btnModificarModelo.setPreferredSize(new java.awt.Dimension(150, 40));

        btnEliminarModelo.setText("Eliminar");
        btnEliminarModelo.setMaximumSize(new java.awt.Dimension(170, 40));
        btnEliminarModelo.setMinimumSize(new java.awt.Dimension(150, 40));
        btnEliminarModelo.setPreferredSize(new java.awt.Dimension(150, 40));

        jLabel2.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel2.setText("Año:");

        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(btnNuevoModelo, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnModificarModelo, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnEliminarModelo, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()
                        .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jlabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)
                            .addComponent(jLabel21, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)
                            .addGroup(jPanel9Layout.createSequentialGroup()
                                .addComponent(jLabel2)
                                .addGap(0, 0, Short.MAX_VALUE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txtCodigoModelo, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)
                            .addComponent(txtDescripcionModelo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(txtAnioModelo, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap())
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtCodigoModelo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jlabel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtDescripcionModelo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .addComponent(txtAnioModelo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 21, Short.MAX_VALUE)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnNuevoModelo, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnModificarModelo, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnEliminarModelo, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        jPanel10.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 153), 1, true), "Segmentos de Vehículos", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Cambria", 1, 12))); // NOI18N

        jlabel9.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
        jlabel9.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jlabel9.setText("Descripción:");
        jlabel9.setPreferredSize(new java.awt.Dimension(120, 20));

        txtDescripcionSegmento.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
        txtDescripcionSegmento.setPreferredSize(new java.awt.Dimension(120, 20));
        txtDescripcionSegmento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtDescripcionSegmentoActionPerformed(evt);
            }
        });

        jLabel22.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
        jLabel22.setText("Código:");
        jLabel22.setPreferredSize(new java.awt.Dimension(120, 20));

        txtCodigoSegmento.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
        txtCodigoSegmento.setPreferredSize(new java.awt.Dimension(120, 20));
        txtCodigoSegmento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtCodigoSegmentoActionPerformed(evt);
            }
        });

        btnNuevoSegmento.setText("Nuevo");
        btnNuevoSegmento.setMaximumSize(new java.awt.Dimension(170, 40));
        btnNuevoSegmento.setMinimumSize(new java.awt.Dimension(150, 40));
        btnNuevoSegmento.setPreferredSize(new java.awt.Dimension(150, 40));
        btnNuevoSegmento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnNuevoSegmentoActionPerformed(evt);
            }
        });

        btnModificarSegmento.setText("Modificar");
        btnModificarSegmento.setMaximumSize(new java.awt.Dimension(170, 40));
        btnModificarSegmento.setMinimumSize(new java.awt.Dimension(150, 40));
        btnModificarSegmento.setPreferredSize(new java.awt.Dimension(150, 40));

        btnEliminarSegmento.setText("Eliminar");
        btnEliminarSegmento.setMaximumSize(new java.awt.Dimension(170, 40));
        btnEliminarSegmento.setMinimumSize(new java.awt.Dimension(150, 40));
        btnEliminarSegmento.setPreferredSize(new java.awt.Dimension(150, 40));

        javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
        jPanel10.setLayout(jPanel10Layout);
        jPanel10Layout.setHorizontalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel10Layout.createSequentialGroup()
                        .addComponent(btnNuevoSegmento, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnModificarSegmento, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnEliminarSegmento, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(jPanel10Layout.createSequentialGroup()
                        .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jlabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)
                            .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txtCodigoSegmento, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)
                            .addComponent(txtDescripcionSegmento, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                .addContainerGap())
        );
        jPanel10Layout.setVerticalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtCodigoSegmento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jlabel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtDescripcionSegmento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnNuevoSegmento, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnModificarSegmento, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnEliminarSegmento, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel11.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 153), 1, true), "Servicios", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Cambria", 1, 12))); // NOI18N

        jlabel10.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
        jlabel10.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jlabel10.setText("Descripción:");
        jlabel10.setPreferredSize(new java.awt.Dimension(120, 20));

        txtDescripcionServicio.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
        txtDescripcionServicio.setPreferredSize(new java.awt.Dimension(120, 20));
        txtDescripcionServicio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtDescripcionServicioActionPerformed(evt);
            }
        });

        jLabel23.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
        jLabel23.setText("Código:");
        jLabel23.setPreferredSize(new java.awt.Dimension(120, 20));

        txtCodigoServicio.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
        txtCodigoServicio.setPreferredSize(new java.awt.Dimension(120, 20));

        btnNuevoServicio.setText("Nuevo");
        btnNuevoServicio.setMaximumSize(new java.awt.Dimension(170, 40));
        btnNuevoServicio.setMinimumSize(new java.awt.Dimension(150, 40));
        btnNuevoServicio.setPreferredSize(new java.awt.Dimension(150, 40));
        btnNuevoServicio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnNuevoServicioActionPerformed(evt);
            }
        });

        btnModificarServicio.setText("Modificar");
        btnModificarServicio.setMaximumSize(new java.awt.Dimension(170, 40));
        btnModificarServicio.setMinimumSize(new java.awt.Dimension(150, 40));
        btnModificarServicio.setPreferredSize(new java.awt.Dimension(150, 40));

        btnEliminarServicio.setText("Eliminar");
        btnEliminarServicio.setMaximumSize(new java.awt.Dimension(170, 40));
        btnEliminarServicio.setMinimumSize(new java.awt.Dimension(150, 40));
        btnEliminarServicio.setPreferredSize(new java.awt.Dimension(150, 40));

        jlabel14.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
        jlabel14.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jlabel14.setText("Tipo de Servicio:");
        jlabel14.setPreferredSize(new java.awt.Dimension(120, 20));

        cmbTipoServicio.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
        jPanel11.setLayout(jPanel11Layout);
        jPanel11Layout.setHorizontalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel11Layout.createSequentialGroup()
                        .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jlabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)
                            .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txtCodigoServicio, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)
                            .addComponent(txtDescripcionServicio, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                    .addGroup(jPanel11Layout.createSequentialGroup()
                        .addComponent(btnNuevoServicio, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnModificarServicio, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnEliminarServicio, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(jPanel11Layout.createSequentialGroup()
                        .addComponent(jlabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(cmbTipoServicio, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel11Layout.setVerticalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtCodigoServicio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jlabel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtDescripcionServicio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jlabel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cmbTipoServicio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnNuevoServicio, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnModificarServicio, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnEliminarServicio, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(18, Short.MAX_VALUE))
        );

        jPanel12.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 153), 1, true), "Tipos de Servicios", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Cambria", 1, 12))); // NOI18N

        jlabel11.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
        jlabel11.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jlabel11.setText("Descripción:");
        jlabel11.setPreferredSize(new java.awt.Dimension(120, 20));

        txtDescripcionTipo.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
        txtDescripcionTipo.setPreferredSize(new java.awt.Dimension(120, 20));
        txtDescripcionTipo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtDescripcionTipoActionPerformed(evt);
            }
        });

        jLabel24.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
        jLabel24.setText("Código:");
        jLabel24.setPreferredSize(new java.awt.Dimension(120, 20));

        txtCodigoTipo.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
        txtCodigoTipo.setPreferredSize(new java.awt.Dimension(120, 20));
        txtCodigoTipo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtCodigoTipoActionPerformed(evt);
            }
        });

        btnNuevoTipo.setText("Nuevo");
        btnNuevoTipo.setMaximumSize(new java.awt.Dimension(170, 40));
        btnNuevoTipo.setMinimumSize(new java.awt.Dimension(150, 40));
        btnNuevoTipo.setPreferredSize(new java.awt.Dimension(150, 40));
        btnNuevoTipo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnNuevoTipoActionPerformed(evt);
            }
        });

        btnModificarTipo.setText("Modificar");
        btnModificarTipo.setMaximumSize(new java.awt.Dimension(170, 40));
        btnModificarTipo.setMinimumSize(new java.awt.Dimension(150, 40));
        btnModificarTipo.setPreferredSize(new java.awt.Dimension(150, 40));

        btnEliminarTipo.setText("Eliminar");
        btnEliminarTipo.setMaximumSize(new java.awt.Dimension(170, 40));
        btnEliminarTipo.setMinimumSize(new java.awt.Dimension(150, 40));
        btnEliminarTipo.setPreferredSize(new java.awt.Dimension(150, 40));

        javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
        jPanel12.setLayout(jPanel12Layout);
        jPanel12Layout.setHorizontalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel12Layout.createSequentialGroup()
                        .addComponent(btnNuevoTipo, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnModificarTipo, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnEliminarTipo, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(jPanel12Layout.createSequentialGroup()
                        .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jlabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)
                            .addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txtCodigoTipo, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)
                            .addComponent(txtDescripcionTipo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                .addContainerGap())
        );
        jPanel12Layout.setVerticalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtCodigoTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jlabel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtDescripcionTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnNuevoTipo, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnModificarTipo, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnEliminarTipo, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel13.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 153), 1, true), "Tipos de Pedido", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Cambria", 1, 12))); // NOI18N

        jlabel12.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
        jlabel12.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jlabel12.setText("Descripción:");
        jlabel12.setPreferredSize(new java.awt.Dimension(120, 20));

        txtDescripcionTipoPedido.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
        txtDescripcionTipoPedido.setPreferredSize(new java.awt.Dimension(120, 20));
        txtDescripcionTipoPedido.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtDescripcionTipoPedidoActionPerformed(evt);
            }
        });

        jLabel25.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
        jLabel25.setText("Código:");
        jLabel25.setPreferredSize(new java.awt.Dimension(120, 20));

        txtCodigoTipoPedido.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
        txtCodigoTipoPedido.setPreferredSize(new java.awt.Dimension(120, 20));

        btnNuevoTipoPedido.setText("Nuevo");
        btnNuevoTipoPedido.setMaximumSize(new java.awt.Dimension(170, 40));
        btnNuevoTipoPedido.setMinimumSize(new java.awt.Dimension(150, 40));
        btnNuevoTipoPedido.setPreferredSize(new java.awt.Dimension(150, 40));
        btnNuevoTipoPedido.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnNuevoTipoPedidoActionPerformed(evt);
            }
        });

        btnModificarTipoPedido.setText("Modificar");
        btnModificarTipoPedido.setMaximumSize(new java.awt.Dimension(170, 40));
        btnModificarTipoPedido.setMinimumSize(new java.awt.Dimension(150, 40));
        btnModificarTipoPedido.setPreferredSize(new java.awt.Dimension(150, 40));

        btnEliminarTipoPedido.setText("Eliminar");
        btnEliminarTipoPedido.setMaximumSize(new java.awt.Dimension(170, 40));
        btnEliminarTipoPedido.setMinimumSize(new java.awt.Dimension(150, 40));
        btnEliminarTipoPedido.setPreferredSize(new java.awt.Dimension(150, 40));

        javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);
        jPanel13.setLayout(jPanel13Layout);
        jPanel13Layout.setHorizontalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel13Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel13Layout.createSequentialGroup()
                        .addComponent(btnNuevoTipoPedido, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnModificarTipoPedido, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnEliminarTipoPedido, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(jPanel13Layout.createSequentialGroup()
                        .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jlabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)
                            .addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txtCodigoTipoPedido, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)
                            .addComponent(txtDescripcionTipoPedido, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                .addContainerGap())
        );
        jPanel13Layout.setVerticalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel13Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtCodigoTipoPedido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jlabel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtDescripcionTipoPedido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnNuevoTipoPedido, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnModificarTipoPedido, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnEliminarTipoPedido, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel14.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 153), 1, true), "Estados", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Cambria", 1, 12))); // NOI18N

        jlabel13.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
        jlabel13.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jlabel13.setText("Descripción:");
        jlabel13.setPreferredSize(new java.awt.Dimension(120, 20));

        txtDescripcionEstado1.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
        txtDescripcionEstado1.setPreferredSize(new java.awt.Dimension(120, 20));
        txtDescripcionEstado1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtDescripcionEstado1ActionPerformed(evt);
            }
        });

        jLabel26.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
        jLabel26.setText("Código:");
        jLabel26.setPreferredSize(new java.awt.Dimension(120, 20));

        txtCodigoEstado1.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
        txtCodigoEstado1.setPreferredSize(new java.awt.Dimension(120, 20));

        btnNuevoEstado1.setText("Nuevo");
        btnNuevoEstado1.setMaximumSize(new java.awt.Dimension(170, 40));
        btnNuevoEstado1.setMinimumSize(new java.awt.Dimension(150, 40));
        btnNuevoEstado1.setPreferredSize(new java.awt.Dimension(150, 40));
        btnNuevoEstado1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnNuevoEstado1ActionPerformed(evt);
            }
        });

        btnModificarEstado1.setText("Modificar");
        btnModificarEstado1.setMaximumSize(new java.awt.Dimension(170, 40));
        btnModificarEstado1.setMinimumSize(new java.awt.Dimension(150, 40));
        btnModificarEstado1.setPreferredSize(new java.awt.Dimension(150, 40));

        btnEliminarEstado1.setText("Eliminar");
        btnEliminarEstado1.setMaximumSize(new java.awt.Dimension(170, 40));
        btnEliminarEstado1.setMinimumSize(new java.awt.Dimension(150, 40));
        btnEliminarEstado1.setPreferredSize(new java.awt.Dimension(150, 40));

        javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);
        jPanel14.setLayout(jPanel14Layout);
        jPanel14Layout.setHorizontalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel14Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel14Layout.createSequentialGroup()
                        .addComponent(btnNuevoEstado1, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnModificarEstado1, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnEliminarEstado1, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(jPanel14Layout.createSequentialGroup()
                        .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jlabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)
                            .addComponent(jLabel26, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txtCodigoEstado1, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)
                            .addComponent(txtDescripcionEstado1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                .addContainerGap())
        );
        jPanel14Layout.setVerticalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel14Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel26, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtCodigoEstado1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jlabel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtDescripcionEstado1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnNuevoEstado1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnModificarEstado1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnEliminarEstado1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGap(4, 4, 4)
                        .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap())
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel3Layout.createSequentialGroup()
                                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(24, Short.MAX_VALUE))
        );

        btnGuardar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/disk.png"))); // NOI18N
        btnGuardar.setText("Guardar");
        btnGuardar.setPreferredSize(new java.awt.Dimension(155, 40));

        btnSalir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/door_out.png"))); // NOI18N
        btnSalir.setText("Salir");
        btnSalir.setPreferredSize(new java.awt.Dimension(155, 40));
        btnSalir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnSalirActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(btnGuardar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnSalir, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnGuardar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnSalir, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void txtNombreCalleActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtNombreCalleActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtNombreCalleActionPerformed

    private void btnSalirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSalirActionPerformed
        dispose();
    }//GEN-LAST:event_btnSalirActionPerformed

    private void txtNombreLocalidadActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtNombreLocalidadActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtNombreLocalidadActionPerformed

    private void txtDescripcionGrupoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtDescripcionGrupoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtDescripcionGrupoActionPerformed

    private void txtDescripcionMarcaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtDescripcionMarcaActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtDescripcionMarcaActionPerformed

    private void txtDescripcionModeloActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtDescripcionModeloActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtDescripcionModeloActionPerformed

    private void txtDescripcionSegmentoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtDescripcionSegmentoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtDescripcionSegmentoActionPerformed

    private void txtDescripcionServicioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtDescripcionServicioActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtDescripcionServicioActionPerformed

    private void txtDescripcionTipoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtDescripcionTipoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtDescripcionTipoActionPerformed

    private void txtDescripcionTipoPedidoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtDescripcionTipoPedidoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtDescripcionTipoPedidoActionPerformed

    private void txtDescripcionEstado1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtDescripcionEstado1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtDescripcionEstado1ActionPerformed

    private void btnNuevoCalleActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNuevoCalleActionPerformed
        int codigo=Integer.valueOf(txtCodigoCalle.getText());
        String nombre= txtNombreCalle.getText();
        try {
            miVisual.agregarCalle(codigo, nombre);
            JOptionPane.showMessageDialog(null,"Cargado Correctamente");
            txtCodigoCalle.setText("");
            txtNombreCalle.setText("");
        } catch (PreexistingEntityException ex) {
            Logger.getLogger(ABMAnexo.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(null,"Ya existe una calle con ese codigo");
        } catch (Exception ex) {
            Logger.getLogger(ABMAnexo.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(null,"No se pudieron cargar los Datos");
        }
    }//GEN-LAST:event_btnNuevoCalleActionPerformed
/*
    private void btnNuevoTipoActionPerformed(java.awt.event.ActionEvent evt) {                                             
        int codigo=Integer.valueOf(txtCodigoTipo.getText());
        String descripcion=txtDescripcionTipo.getText();
        try {
            miVisual.agregarTipoDeServicio(codigo, descripcion);
            JOptionPane.showMessageDialog(null,"Cargado Correctamente");
            txtCodigoTipo.setText("");
            txtDescripcionTipo.setText("");
        } catch (PreexistingEntityException ex) {
            Logger.getLogger(ABMAnexo.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(null,"Ya existe un Tipo de Servicio con ese codigo");
        } catch (Exception ex) {
            Logger.getLogger(ABMAnexo.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(null,"No se pudieron cargar los Datos");
        }
    }                                            

    private void btnNuevoServicioActionPerformed(java.awt.event.ActionEvent evt) {                                                 
        int codigo=Integer.valueOf(txtCodigoServicio.getText());
        String descripcion=txtDescripcionServicio.getText();
        TipoDeServicio miTipoDeServicio=null;
        try {
            miVisual.agregarServicio(codigo, descripcion, miTipoDeServicio);
        } catch (PreexistingEntityException ex) {
            Logger.getLogger(ABMAnexo.class.getName()).log(Level.SEVERE, null, ex);
        } catch (Exception ex) {
            Logger.getLogger(ABMAnexo.class.getName()).log(Level.SEVERE, null, ex);
        }
    }                                                
*/
    private void btnNuevoTipoPedidoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNuevoTipoPedidoActionPerformed
        int codigo=Integer.valueOf(txtCodigoTipoPedido.getText());
        String descripcion=txtDescripcionTipoPedido.getText();
        try {
            miVisual.agregarTipoPedido(codigo, descripcion);
            JOptionPane.showMessageDialog(null,"Cargado Correctamente");
            txtCodigoTipoPedido.setText("");
            txtDescripcionTipoPedido.setText("");
        } catch (PreexistingEntityException ex) {
            Logger.getLogger(ABMAnexo.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(null,"Ya existe un Tipo de Pedido con ese codigo");
        } catch (Exception ex) {
            Logger.getLogger(ABMAnexo.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(null,"No se pudieron cargar los Datos");
        }
    }//GEN-LAST:event_btnNuevoTipoPedidoActionPerformed

    private void btnNuevoLocalidadActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNuevoLocalidadActionPerformed
int codigo=Integer.parseInt( txtCodigoLocalidad.getText());
String nombre= txtNombreLocalidad.getText();
List<Calle> misCalles=new LinkedList();
        try {
            miVisual.agregarLocalidad(codigo, nombre, misCalles);
            JOptionPane.showMessageDialog(null,"Cargado Correctamente");
            txtCodigoLocalidad.setText("");
            txtNombreLocalidad.setText("");
        } catch (PreexistingEntityException ex) {
            Logger.getLogger(ABMAnexo.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(null,"Ya existe una calle con ese codigo");
        } catch (Exception ex) {
            Logger.getLogger(ABMAnexo.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(null,"No se pudieron cargar los Datos");
        }
    }//GEN-LAST:event_btnNuevoLocalidadActionPerformed

    private void txtCodigoGrupoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtCodigoGrupoActionPerformed
int codigo=Integer.parseInt(txtCodigoGrupo.getText());
String Descripcion=txtDescripcionGrupo.getText();
List<Operacion> misOperaciones = new LinkedList();
List<Repuesto> misRepuestos = new LinkedList();
Vehiculo miVehiculo = null;
        try {
            miVisual.agregarGrupoDeConstruccion(codigo, Descripcion, misOperaciones, misRepuestos, miVehiculo);
            JOptionPane.showMessageDialog(null, "Cargado Correctamente");
            txtCodigoLocalidad.setText("");
            txtNombreLocalidad.setText("");
        } catch (PreexistingEntityException ex) {
            Logger.getLogger(ABMAnexo.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(null,"Ya existe un grupo de construccion con ese número");
        } catch (Exception ex) {
            Logger.getLogger(ABMAnexo.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(null,"No se pudieron cargar los Datos");
        }
    }//GEN-LAST:event_txtCodigoGrupoActionPerformed

    private void btnNuevoGrupoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNuevoGrupoActionPerformed
     int Codigo=Integer.parseInt(txtCodigoGrupo.getText());
     String Descripcion=txtDescripcionGrupo.getText();
     List<Operacion>misOperaciones=null;
     List<Repuesto> misRepuestos=null;
     Vehiculo unVehiculo=miVisual.buscarVehiculoNombre(cmbVehiculoNombre.getSelectedItem().toString());
        try {
            miVisual.agregarGrupoDeConstruccion(Codigo, Descripcion, misOperaciones, misRepuestos, unVehiculo);
            JOptionPane.showMessageDialog(null, "Cargado Correctamente");
            txtCodigoGrupo.setText("");
            txtDescripcionGrupo.setText("");
        } catch (PreexistingEntityException ex) {
            Logger.getLogger(ABMAnexo.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(null,"Ya existe un grupo de construccion con ese número");
        } catch (Exception ex) {
            Logger.getLogger(ABMAnexo.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(null,"No se pudieron cargar los Datos");
        }
    }//GEN-LAST:event_btnNuevoGrupoActionPerformed

    private void txtCodigoLocalidadActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtCodigoLocalidadActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtCodigoLocalidadActionPerformed

    private void txtCodigoCalleActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtCodigoCalleActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtCodigoCalleActionPerformed

    private void btnNuevoEstado1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNuevoEstado1ActionPerformed
     int Codigo=Integer.parseInt(txtCodigoEstado1.getText());
     String Descripcion=txtDescripcionGrupo.getText();
        try {
            miVisual.agregarEstado(Codigo, Descripcion);
            JOptionPane.showMessageDialog(null, "Cargado Correctamente");
            txtCodigoLocalidad.setText("");
            txtNombreLocalidad.setText("");
        } catch (PreexistingEntityException ex) {
            Logger.getLogger(ABMAnexo.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(null, "Ya existe un estado con ese código");
        } catch (Exception ex) {
            Logger.getLogger(ABMAnexo.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(null,"No se pudieron cargar los Datos");
        }
         
    }//GEN-LAST:event_btnNuevoEstado1ActionPerformed

    private void btnNuevoMarcaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNuevoMarcaActionPerformed
    int Codigo=Integer.parseInt(txtCodigoMarca.getText());
    String Descripcion=txtDescripcionMarca.getText();
    try {
            miVisual.agregarEstado(Codigo, Descripcion);
            JOptionPane.showMessageDialog(null, "Cargado Correctamente");
            txtCodigoMarca.setText("");
            txtDescripcionMarca.setText("");
        } catch (PreexistingEntityException ex) {
            Logger.getLogger(ABMAnexo.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(null, "Ya existe una Marca con ese código");
        } catch (Exception ex) {
            Logger.getLogger(ABMAnexo.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(null,"No se pudieron cargar los Datos");
        }
    }//GEN-LAST:event_btnNuevoMarcaActionPerformed

    private void btnNuevoSegmentoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNuevoSegmentoActionPerformed
    int Codigo=Integer.parseInt(txtCodigoSegmento.getText());
    String Descripcion=txtDescripcionSegmento.getText();
    List<Vehiculo> misVehiculos=null;
    try {
            miVisual.agregarSegmento(Codigo, Descripcion, misVehiculos);
            JOptionPane.showMessageDialog(null,"Cargado Correctamente");
            txtCodigoSegmento.setText("");
            txtDescripcionSegmento.setText("");
        } catch (PreexistingEntityException ex) {
            Logger.getLogger(ABMAnexo.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(null,"Ya existe una Segmento con ese codigo");
        } catch (Exception ex) {
            Logger.getLogger(ABMAnexo.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(null,"No se pudieron cargar los Datos");
        }
    }//GEN-LAST:event_btnNuevoSegmentoActionPerformed

    private void btnNuevoModeloActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNuevoModeloActionPerformed
    int Codigo=Integer.parseInt(txtCodigoModelo.getText());
    int Anio=Integer.parseInt(txtAnioModelo.getText());
    String Descripcion=txtDescripcionModelo.getText();
    try {
            miVisual.agregarModelo(Codigo, Descripcion, Codigo);
            JOptionPane.showMessageDialog(null,"Cargado Correctamente");
            txtCodigoModelo.setText("");
            txtDescripcionModelo.setText("");
            txtAnioModelo.setText("");
        } catch (PreexistingEntityException ex) {
            Logger.getLogger(ABMAnexo.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(null,"Ya existe un Modelo con ese codigo");
        } catch (Exception ex) {
            Logger.getLogger(ABMAnexo.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(null,"No se pudieron cargar los Datos");
        }
    }//GEN-LAST:event_btnNuevoModeloActionPerformed

    private void btnNuevoServicioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNuevoServicioActionPerformed
    int Codigo=Integer.parseInt(txtCodigoServicio.getText());
    String Descripcion=txtDescripcionServicio.getText();
    TipoDeServicio misTiposDeServicios = null;
    try {
            miVisual.agregarServicio(Codigo, Descripcion, misTiposDeServicios);
            JOptionPane.showMessageDialog(null,"Cargado Correctamente");
            txtCodigoModelo.setText("");
            txtDescripcionModelo.setText("");
            txtAnioModelo.setText("");
        } catch (PreexistingEntityException ex) {
            Logger.getLogger(ABMAnexo.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(null,"Ya existe un Servicio con ese codigo");
        } catch (Exception ex) {
            Logger.getLogger(ABMAnexo.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(null,"No se pudieron cargar los Datos");
        }
    }//GEN-LAST:event_btnNuevoServicioActionPerformed

    private void btnNuevoTipoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNuevoTipoActionPerformed
    int Codigo=Integer.parseInt(txtCodigoTipo.getText());
    String Descripcion=txtDescripcionTipo.getText();
    try {
            miVisual.agregarTipoDeServicio(Codigo, Descripcion);
            JOptionPane.showMessageDialog(null,"Cargado Correctamente");
            txtCodigoTipo.setText("");
            txtDescripcionTipo.setText("");
          
        } catch (PreexistingEntityException ex) {
            Logger.getLogger(ABMAnexo.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(null,"Ya existe un Tipo de Servicio con ese codigo");
        } catch (Exception ex) {
            Logger.getLogger(ABMAnexo.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(null,"No se pudieron cargar los Datos");
        }
    }//GEN-LAST:event_btnNuevoTipoActionPerformed

    private void cmbVehiculoNombreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cmbVehiculoNombreActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_cmbVehiculoNombreActionPerformed

    private void txtCodigoSegmentoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtCodigoSegmentoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtCodigoSegmentoActionPerformed

    private void txtCodigoTipoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtCodigoTipoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtCodigoTipoActionPerformed
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnEliminarCalle;
    private javax.swing.JButton btnEliminarEstado1;
    private javax.swing.JButton btnEliminarGrupo;
    private javax.swing.JButton btnEliminarLocalidad;
    private javax.swing.JButton btnEliminarMarca;
    private javax.swing.JButton btnEliminarModelo;
    private javax.swing.JButton btnEliminarSegmento;
    private javax.swing.JButton btnEliminarServicio;
    private javax.swing.JButton btnEliminarTipo;
    private javax.swing.JButton btnEliminarTipoPedido;
    private javax.swing.JButton btnGuardar;
    private javax.swing.JButton btnModificarCalle;
    private javax.swing.JButton btnModificarEstado1;
    private javax.swing.JButton btnModificarGrupo;
    private javax.swing.JButton btnModificarLocalidad;
    private javax.swing.JButton btnModificarMarca;
    private javax.swing.JButton btnModificarModelo;
    private javax.swing.JButton btnModificarSegmento;
    private javax.swing.JButton btnModificarServicio;
    private javax.swing.JButton btnModificarTipo;
    private javax.swing.JButton btnModificarTipoPedido;
    private javax.swing.JButton btnNuevoCalle;
    private javax.swing.JButton btnNuevoEstado1;
    private javax.swing.JButton btnNuevoGrupo;
    private javax.swing.JButton btnNuevoLocalidad;
    private javax.swing.JButton btnNuevoMarca;
    private javax.swing.JButton btnNuevoModelo;
    private javax.swing.JButton btnNuevoSegmento;
    private javax.swing.JButton btnNuevoServicio;
    private javax.swing.JButton btnNuevoTipo;
    private javax.swing.JButton btnNuevoTipoPedido;
    private javax.swing.JButton btnSalir;
    private javax.swing.JComboBox cmbTipoServicio;
    private javax.swing.JComboBox cmbVehiculoNombre;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel12;
    private javax.swing.JPanel jPanel13;
    private javax.swing.JPanel jPanel14;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JLabel jlabel10;
    private javax.swing.JLabel jlabel11;
    private javax.swing.JLabel jlabel12;
    private javax.swing.JLabel jlabel13;
    private javax.swing.JLabel jlabel14;
    private javax.swing.JLabel jlabel3;
    private javax.swing.JLabel jlabel5;
    private javax.swing.JLabel jlabel6;
    private javax.swing.JLabel jlabel7;
    private javax.swing.JLabel jlabel8;
    private javax.swing.JLabel jlabel9;
    private javax.swing.JTextField txtAnioModelo;
    private javax.swing.JTextField txtCodigoCalle;
    private javax.swing.JTextField txtCodigoEstado1;
    private javax.swing.JTextField txtCodigoGrupo;
    private javax.swing.JTextField txtCodigoLocalidad;
    private javax.swing.JTextField txtCodigoMarca;
    private javax.swing.JTextField txtCodigoModelo;
    private javax.swing.JTextField txtCodigoSegmento;
    private javax.swing.JTextField txtCodigoServicio;
    private javax.swing.JTextField txtCodigoTipo;
    private javax.swing.JTextField txtCodigoTipoPedido;
    private javax.swing.JTextField txtDescripcionEstado1;
    private javax.swing.JTextField txtDescripcionGrupo;
    private javax.swing.JTextField txtDescripcionMarca;
    private javax.swing.JTextField txtDescripcionModelo;
    private javax.swing.JTextField txtDescripcionSegmento;
    private javax.swing.JTextField txtDescripcionServicio;
    private javax.swing.JTextField txtDescripcionTipo;
    private javax.swing.JTextField txtDescripcionTipoPedido;
    private javax.swing.JTextField txtNombreCalle;
    private javax.swing.JTextField txtNombreLocalidad;
    // End of variables declaration//GEN-END:variables

    private void CargarComboVehiculos(){
    List<Vehiculo> misVehiculo= miVisual.dameMisVehiculos();
    
    for(Vehiculo unVehiculo:misVehiculo){
    
       misVehiculosCombo.addElement(unVehiculo.getMiModelo().getDescripcion());
      
    }
    cmbVehiculoNombre.setModel(misVehiculosCombo);
    
} 
    private void CargarComboTipoServicio(){
    List<TipoDeServicio> misTiposDeServicios= miVisual.dameMisTipoDeServicios();
    
    for(TipoDeServicio miTipoDeServicio:misTiposDeServicios){
    
       misTiposServicioCombo.addElement(miTipoDeServicio.getDescripcion());   
    }
    cmbTipoServicio.setModel(misTiposServicioCombo);
    
} 
}
